package ogdkp.om;

public enum CategoriesEnum {

	ONE(10), TWO(15), THREE(20), FOUR(25), FIVE(35), SIX(40);

	private final int cost;

	CategoriesEnum(final int cost) {
		this.cost = cost;
	}

	public int getCost() {
		return cost;
	}

	public static int getCostFor(final int number) {
		final CategoriesEnum[] values = CategoriesEnum.values();
		if (values.length >= number) {
			return values[number - 1].getCost();
		}
		return -1;
	}

}
